package com.itheima.fileIO;

import java.io.FileOutputStream;
import java.io.IOException;

public class IODemo02 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("FileIo\\a.txt");
//        byte[] bytes={97,98,99,100,101,102,103};
//        fos.write(bytes,3,3);
//        fos.write(bytes);
        fos.write(97);
        fos.write("\r\n".getBytes());
        fos.write(98);
        fos.write("\r\n".getBytes());
        fos.write(99);
        fos.write("\r\n".getBytes());
        fos.write(100);
        fos.write("\r\n".getBytes());
        fos.write(101);
        fos.write("\r\n".getBytes());

        fos.close();
    }
}
